import { _decorator, Component, Node, Prefab, instantiate } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('list')
export class list extends Component {
    @property(Prefab)
    list_bg: Prefab = null
    list_bg_Node: Node = null

    start() {
        this.list_bg_Node = instantiate(this.list_bg);
        this.list_bg_Node.setParent(this.node)
        this.list_bg_Node.width = this.node.width
        this.list_bg_Node.height = this.node.height
        this.list_bg_Node.x = 0
        this.list_bg_Node.y = 0
    }

    update(deltaTime: number) {
        
    }
}


